Release 10.1A: OpenEdge Development:
Progress Dynamics Administration
Creating a batch-mode DCU script
Write a batch command file or script that executes the two DCU batch procedures,
dcuphase1.panddcuphase2.p, in sequence. Progress Dynamics provides a sample batch command file for you to use as a model (see the "Sample batch-mode DCU script" section).Both procedures start a complete Dynamics session in order to complete the installation or upgrade of the target Repository. They connect to the target site Repository as necessary and write details of their activity to the log file you specify in the DCU GUI. Each procedure returns a value to the calling script indicating success or failure.
Like any Dynamics session, these procedures require configuration files (
-icfparamICFCONFIG) and session types (-icfparamICFSESSTYPE) to work. You generate the appropriate configuration files, and Progress Dynamics provides a default session type for each procedure that supports batch clients.You must also use the
-inistartup parameter, like the following for each procedure, to specify a.inifile that sets thePROPATHfor the batch-mode DCU:
Note: These procedures are installed in
OpenEdge_Install\src\dynamics.Starting up dcuphase1.p
The
dcuphase1.pprocedure updates the Repository schema and runs various fix programs to prepare for loading the installation or upgrade data. To start updcuphase1.p, use a command line like the following:
The
dcubatch.inifile is typically an edited copy of yourdynamics.inifile that you use to set thePROPATHappropriately for the batch-mode DCU. You must use a.pffile (dcuphase1.pfin the example) to specify the-icfparamoptions for the Dynamics session. (The batch character process in Windows does not accept the-icfparamstartup parameter specified directly on the command line.) Fordcuphase1.p, you specify the same DCU XML files for input using the-icfparamoptions that you specified to generate these files using the DCU GUI (see the "Generating the batch-mode data" section). For example, you might specify this-icfparamsetting in a.pffile, as shown:
The DCU script file provides all of the environment settings as you specified them in the DCU GUI. If you do not specify the
DCUSITEDATAFILEoption, the procedure assumes that the necessary site data is included in the DCU script file.Note also that
dcuphase1.plooks fordcuphase1.xmlas the defaultICFCONFIGsetting, which you generate as a configuration file from your central Repository, and it usesdcuphase1as the defaultICFSESSTYPEsetting, a session type that supports batch clients.Starting up dcuphase2.p
Start up this procedure only if
dcuphase1.pcompletes successfully. This procedure makes a connection to the Repository to load the actual installation or upgrade data. To start updcuphase2.p, use a command line similar to starting up a Progress Dynamics session in the AppServer environment, except you must specify a session type that supports batch clients, and you must use a.pffile to specify the-icfparamsettings, like the following:
Again, you use a
.ini(dcubatch.ini) file to set thePROPATHappropriately for the batch-mode DCU.The
dcuphase2.pffile might contain the following settings:
Progress Dynamics provides the
dcuphase2session type for you to use this procedure.Sample batch-mode DCU script
This is the sample batch-mode script (
OpenEdge_Install/src/dynamics/install/dcubatch.bat) provided with Progress Dynamics for you to use as a guide for writing your own batch-mode DCU installation or upgrade procedure:
The
dcubatch.ini,dcuphase1.pf, anddcuphase2.pffiles are also sample files provided withdcubatch.bat, which you can modify as appropriate. You must modifydcubatch.batfor the paths in your Windows environment and reworked to run in a UNIX environment.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |